package com.abcdefg.java_chatroom.mapper;

import com.abcdefg.java_chatroom.model.Message;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MessageMapper {
    String getLastMessageBySessionId(Integer sessionId);

    List<Message> getMessageBySessionId(Integer sessionId);

    void add(Message message);
}
